From 151c1bdf9c8c4e5948e6ce54e9a0e1e51d3bf638 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 12 Dec 2005 16:44:27 +0000 Subject: [PATCH] Squelch error message from iptables (we log this later if necessary). Signed-off-by: Ewan Mellor --- tools/examples/vif-common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/examples/vif-common.sh b/tools/examples/vif-common.sh index 105a843900..8c997f0d99 100644 --- a/tools/examples/vif-common.sh +++ b/tools/examples/vif-common.sh @@ -62,7 +62,8 @@ function frob_iptable() local c="-D" fi - iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT || + iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT \ + 2>/dev/null || [ "$c" == "-D" ] || log err \ "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT failed. -- 2.30.2